package com.sskj.postar.mapper;

import com.sskj.postar.core.universal.Mapper;
import com.sskj.postar.model.Token;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

public interface TokenMapper extends Mapper<Token> {
    @Delete("DELETE FROM token WHERE user_id =#{userId} and type =#{type}")
    void deleteBy(@Param("userId") Integer userId, @Param("type")String type);
}